package com.example.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 视图跳转配置类
 * @author GuLin
 * @date 2021-06-28 22:57
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {

    @Override
    public  void addViewControllers(ViewControllerRegistry registry){

        registry.addViewController("/reg.html").setViewName("reg");
    }
}
